package com.zzcoder.mall.data.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@ApiModel(value = "会员")
@Data
@Table
@Entity
public class UmsMember extends UmsUser {
    @ApiModelProperty(value = "昵称")
    @Column
    private String nickname;

    @ApiModelProperty(value = "手机号")
    @Column(unique = true)
    private String phone;
}
